﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace Kira.Compiler.Bods
{
    public abstract class BodsInvokable : BodsObject
    {

        public bool HasParameters
        {
            get
            {
                return this.HasElement("DIParameters");
            }
        }

        public IEnumerable<DIElement> Parameters
        {
            get
            {
                return this.GetElement("DIParameters").GetElements<DIElement>();
            }
        }

        public bool HasVariables
        {
            get
            {
                return this.HasElement("DIVariables");
            }
        }

        public IEnumerable<DIElement> Variables
        {
            get
            {
                return this.GetElement("DIVariables").GetElements<DIElement>();
            }
        }
    }
}
